/// <reference path="../../apicloud.d.ts" />
const vm = new Vue({
    el: '#main',
    data: {
        realName: '',
        idCard: '',
    },
});

function main() {
    fxj.fixLayout();
}

main();

async function submit() {
    if (!(isExist(vm.realName) || isExist(vm.idCard))) {
        toast('请填写真实姓名与正确的身份证号');
        return;
    }
    const result = await ajax({
        url: 'home/userCenter/LandlordCertification',
        type: 'POST',
        data: {
            trueName: vm.realName,
            idCard: vm.idCard,
        },
    });
    toast(result.msg);
    if (result.err === 0) {
        setTimeout(() => {
            goPage('yollon_add.html');
        }, 2000);
    }
}